using System.Collections.Generic;

using com.tc.zigbee.zcl;

using com.tc.util;
namespace com.tc.zigbee.zcl.command
{
    public class GroupMemberResponse : AbstractZclCommand
    {

        byte capacity;

        List<short> membership = new List<short>();
        public GroupMemberResponse(byte[] data)
        {

            capacity = data[0];
            byte c = data[1];
            for (int i = 0; i < c; i++)
            {
                byte[] ai = new byte[2];
                ai[0] = data[2 + i * 2];
                ai[1] = data[3 + i * 2];
                short mg = DataUtil.shortValue(ai);
                membership.Add(mg);
            }



        }
        public byte getCapacity()
        {
            return capacity;
        }
        public List<short> getMembership()
        {
            return membership;
        }

    }
}
